//
//  CommitTableViewCell.swift
//  fsapp
//
//  Created by zguang on 17/8/2.
//  Copyright © 2017年 huangshengjie. All rights reserved.
//

import UIKit

class CommitTableViewCell: UITableViewCell {
    let leftImage = UIImageView()
    let title = UILabel()
    let content = UILabel()
    let sendTime = UILabel()
    
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        setUI()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }
    
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
        
        // Configure the view for the selected state
    }
    
    func setUI(){
        
        leftImage.frame = CGRect(x:width(20),y:height(20),width:width(88),height:height(88))
        leftImage.layer.cornerRadius = height(44)
        leftImage.layer.masksToBounds = true
        
        title.frame = CGRect(x:width(134),y:height(20),width:width(0),height:height(0))
        title.numberOfLines = 0;
        title.font = UIFont.systemFont(ofSize: height(28))
        title.textColor = title2color
        
        sendTime.frame = CGRect(x:SCREEN_WIDTH-width(234),y:height(20),width:width(0),height:height(28))
        sendTime.numberOfLines = 0;
        sendTime.font = UIFont.systemFont(ofSize: height(28))
        sendTime.textColor = title2color
        
    
        content.frame = CGRect(x:width(134),y:height(70),width:width(570),height:height(87))
        content.font = UIFont.systemFont(ofSize: height(28))
      //  content.textColor = title2color
        self.addSubview(leftImage)
        self.addSubview(title)
        //self.addSubview(playTime)
        self.addSubview(content)
        self.addSubview(sendTime)
        
    }
    

}
